package domain;


import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @version 1.0
 * @autho 3505
 * @date 2018/6/1
 */
public class Employee {
    private int employeeID;
    private String employeeName;
    private String sex;
    private Date date;
    private Date hireDate;
    private Float salary;
    private int departmentID;

    @Override
    public String toString() {
        return "Employee{" +
                "employeeID=" + employeeID +
                ", employeeName='" + employeeName + '\'' +
                ", sex='" + sex + '\'' +
                ", date=" + new SimpleDateFormat("yyyy-MM-dd").format(date) +
                ", hireDate=" + new SimpleDateFormat("yyyy-MM-dd").format(hireDate) +
                ", salary=" + salary +
                ", departmentID=" + departmentID +
                '}'+"\n";
    }

    public Employee() {
    }

    public Employee(int employeeID, String employeeName, String sex, Date date, Date hireDate, Float salary, int departmentID) {
        this.employeeID = employeeID;
        this.employeeName = employeeName;
        this.sex = sex;
        this.date = date;
        this.hireDate = hireDate;
        this.salary = salary;
        this.departmentID = departmentID;
    }

    public int getEmployeeID() {
        return employeeID;
    }

    public void setEmployeeID(int employeeID) {
        this.employeeID = employeeID;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Date getHireDate() {
        return hireDate;
    }

    public void setHireDate(Date hireDate) {
        this.hireDate = hireDate;
    }

    public Float getSalary() {
        return salary;
    }

    public void setSalary(Float salary) {
        this.salary = salary;
    }

    public int getDepartmentID() {
        return departmentID;
    }

    public void setDepartmentID(int departmentID) {
        this.departmentID = departmentID;
    }
}
